home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 26
/
Cream of the Crop 26.iso
/
program
/
qlib205.zip
/
QLIB.ZIP
/
TEST
/
TESTF.C
< prev
next >
Wrap
C/C++ Source or Header
|
1997-02-07
|
429b
|
26 lines
#include <qlib.h>
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
//#define double float
void main(void) {
double f; //remember to always use double with QLIB
byte a;
byte tmpstr[80];
printf("Testing floats\n");
printf("Enter 0 to quit\n");
do {
printf("\nEnter a float:");
gets(tmpstr);
f=atof(tmpstr);
printf("That's %f or %e\n",f,f);
} while (f!=0.0);
}